FROM python:3.8-slim
COPY requirements.txt /requirements.txt
USER root
RUN apt-get update && apt-get install -y python3-dev build-essential
RUN pip install --upgrade pip -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
RUN pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com